package com.free.javaplus.util;

import java.util.Properties;

public class ReadConfigXml {
	private Properties props;

	public ReadConfigXml(String url) {
		ParseXML myRead = new ParseXML();
		try {
			myRead.parse(url);
			props = new Properties();
			props = myRead.getProps();

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public String getDriverClassName()
	{
		return props.getProperty("driverClassName");
	}
	
	public String getUrl() {
		return props.getProperty("url");
	}

	 

	public String getDatabaseName() {
		return props.getProperty("databasename");
	}

	public String getUserName() {
		return props.getProperty("username");
	}

	public String getPassWord() {
		return props.getProperty("password");
	}

}
